description "ZooKeeper"

limit nofile 32768 32768

start on runlevel [2345]
stop on [!12345]

respawn
respawn limit 2 5

umask 007

kill timeout 300

script
    exec sudo -u {{ zk_user }} -g {{ zk_group }} {{ zk_dir }}/bin/zkServer.sh start-foreground > {{ zk_log_dir }}/init-zookeeper.log 2>&1
end script
